﻿using System.Web.Mvc;
using Journal.Front.Presentation.FilterAttributes;
using Journal.Front.Presentation.Models.StudyRoomModels;
using Journal.Front.Presentation.PresentationServicesInterfaces;

namespace Journal.Front.Presentation.Controllers
{
    [FrontAuthorize]
    public class StudyRoomController : Controller
    {
        private readonly IStudyRoomPresentationService studyRoomPresentationService;

        public StudyRoomController(IStudyRoomPresentationService studyRoomPresentationService)
        {
            this.studyRoomPresentationService = studyRoomPresentationService;
        }

        public ActionResult Index()
        {
            StudyRoomModel model = studyRoomPresentationService.GetStudyRoomModel();
            return View(model);
        }
    }
}